package com.fourth.dao;

import com.fourth.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//@Mapper
public interface AddressMapper {
    List<Address> queryById(Integer uId);


    int resetTakeDeliveryAddress(Integer uId);

    int changeTakeDeliveryAddress(Integer aId);

    int resetDefaultAddress(Integer uId);
    int changeDefaultAddress(Integer aId);

    Address selectTDAddressByUid(Integer uId);
    int insertAddress(@Param("address") Address address, @Param("uId") Integer uId);


}